﻿using System;
using System.Collections.Generic;

namespace Framework.Validation
{
    /// <summary>
    /// Declare interface for <see cref="IValidator" /> work result.
    /// </summary>
    public interface IValidationResult
    {
        /// <summary>
        /// Gets a message describing the failure.
        /// </summary>
        string Message
        {
            get;
        }

        /// <summary>
        /// Gets the object to which the validation rule was applied.
        /// </summary>
        object Target
        {
            get;
        }

        /// <summary>
        /// Gets the validator that performed the failing validation.
        /// </summary>
        IValidator Validator
        {
            get;
        }
    }
}
